﻿using System;
using RiaServicesContrib;

namespace EntityGraph.SQL
{
    /// <summary>
    /// Class that represents an association between two type trees
    /// </summary>
    internal class TypeTreeEdge
    {
        public TypeTree From { get; set; }
        public TypeTree To { get; set; }
        public EntityGraphEdge Edge { get; set; }
        public override string ToString()
        {
            return String.Format("{0}({1})->{2}({3})", From.EntityType.Name, From.EntityType.Name, To.EntityType.Name, To.EntityType.Name);
        }
    }
}
